﻿<!DOCTYPE html>

<html class="x-admin-sm">
<head>
    <meta name="viewport" content="width=device-width" />
    <meta charset="UTF-8">
    <title>系统用户</title>
    <meta name="renderer" content=padding>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link href="~/js/layui/css/layui.css" rel="stylesheet" />
    <link href="~/X-admin/css/font.css" rel="stylesheet" />
    <link href="~/X-admin/css/xadmin.css" rel="stylesheet" />
    <script src="~/X-admin/js/jquery.min.js"></script>
    <script src="~/X-admin/js/xadmin.js"></script>
    <script src="~/js/framework/sysframework.js"></script>
    <script src="~/js/framework/commonjs.js"></script>
    <script src="~/js/layui/layui.js"></script>
    <script src="~/js/sysweb/userjs.js"></script>
      <script type="text/html" id="barDemo">
        {{# if(d.isSync=='N'){}}
        <a title="编辑信息" href="javascript:;" lay-event="userEdit"><i class="layui-icon">&#xe642;</i></a>
        {{# }}}
        <a title="重置密码" href="javascript:;" lay-event="reSetPwd"><i class="layui-icon">&#xe669;</i></a>
        <a title="权限分配" href="javascript:;" lay-event="setPower"><i class="layui-icon">&#xe631;</i></a>
        {{# if(d.isSync=='N'){}}
        <a title="删除信息" href="javascript:;" lay-event="userDel"><i class="layui-icon">&#xe640;</i></a>  
        {{# }}}
    </script>

</head>
<body>
    <div class="layui-fluid" style="margin:3px;width:100%;">
        <ul lay-bar="disabled" class="mWebBanner">
            <li class="layui-nav-item" style="float:left;">
                <button id="btn-update" type="button" name="btn_update" onclick="openWin()" class="buttonCss">
                用户添加
                    </button>
            </li>
            <li class="layui-nav-item" style="float:left;padding-left:20px">
                <button id="btn-sync" type="button" name="btn_update" onclick="SyncUser()" class="buttonCss">
                   数据同步
                    </button>
            </li>
            <li class="layui-nav-item" style="float:left;padding-left:20px">
                <button id="btn-update" type="button" name="btn_update" onclick="deptShow()" style="border:0;background-color:transparent;color:#fff;cursor:pointer">
                    部门详情
                    </button>
            </li>
          
            <li class="layui-nav-item" style="float:left;padding-left:40px">
                <label name="showDept" id="showDept" style="color:#fff">未选部门</label>
                
            </li>
        </ul>
        <div style="float:left;width:20%;" id="divLeft">
            <div id="treeNav" class="demo-tree demo-tree-box" style="width: 100%; height: 500px; overflow: scroll;float:left;"></div>
        </div>
        <div style="float:left;width:78%;">
            <div class="layui-card" >
         
                <div class="layui-card-body" style="margin-top:5px">
                    <form class="layui-form layui-col-space5" name="qForm" id="qForm">
                        <div class="layui-inline layui-show-xs-block">
                            <input type="text" name="userCode" placeholder="请输入用户账号" class="layui-input" id="userCode">
                        </div>
                        <div class="layui-inline layui-show-xs-block">
                            <input type="hidden" id="dept" name="dept" />
                            <input type="text" name="username" placeholder="请输入用户名称"  class="layui-input" id="userName">
                        </div>

                        <div class="layui-inline layui-show-xs-block">
                            <button class="layui-btn" lay-filter="sreach" id="btn-view" type="button" onclick="loadData()"><i class="layui-icon">&#xe615;</i></button>
                        </div>
                    </form>
                </div>
         

                <div class="layui-card-body layui-table-body layui-table-main" id="layui-table-main">
                    <table class="layui-hide" id="userList" lay-filter="ulist"></table>
                </div>
            </div>


        </div>
    </div>
</body>

</html>

